package com.ea.common.enums;

import com.ea.common.util.IdWorker;

/**
 * @author NAME-L
 * @Description 系统字段（不可删除）
 * @className SysCateEnums
 * @date 2023-02-01 23:02:47
 */
public enum SysColumnTypeEnums {

    ELECTRIC_TYPE("electric" , "电器分类"),;


    public String dicType;

    public String desc;

    SysColumnTypeEnums(String dicType, String desc) {
        this.dicType = dicType;
        this.desc = desc;
    }

    public String getDicType() {
        return dicType;
    }

    public String getDesc() {
        return desc;
    }

    public boolean hasSysDicType(String code) {
        for (SysColumnTypeEnums enums : values()) {
            if (enums.getDicType().equals(code)) {
                return true;
            }
        }
        return false;
    }

}


